package com.huike.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 线索跟进记录
 * </p>
 *
 * @author author
 * @since 2023-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_clue_track_record")
@ApiModel(value="TbClueTrackRecord对象", description="线索跟进记录")
public class MPTbClueTrackRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "线索id")
    private String clueId;

    @ApiModelProperty(value = "跟进人")
    private String createBy;

    @ApiModelProperty(value = "意向等级")
    private String subject;

    @ApiModelProperty(value = "跟进记录")
    private String record;

    @ApiModelProperty(value = "意向等级")
    private String level;

    @ApiModelProperty(value = "跟进时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0 正常跟进记录 1 伪线索")
    private String type;

    @ApiModelProperty(value = "原因")
    private String falseReason;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nextTime;

    @TableField(exist = false)
    private String updateBy; //更新者

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ownerTime;

    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private String channel;

    @TableField(exist = false)
    private String Owner;

    @TableField(exist = false)
    private String activityInfo;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;  //更新时间
}
